package com.neepu.serviceImpl;

import com.neepu.dao.LogMapper;
import com.neepu.pojo.LogInfo;
import com.neepu.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogInfoServiceImpl implements LogInfoService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public void insertLog(LogInfo logInfo) {
        logMapper.insertLog(logInfo);
    }

    @Override
    public List<LogInfo> findAllLogInfo() {
        return logMapper.findAllLogInfo();
    }

    @Override
    public List<LogInfo> findAllLogInfoByContent(String content) {
        return logMapper.findAllLogInfoByContent(content);
    }

    @Override
    public void deleteLogById(Integer id) {
        logMapper.deleteLogById(id);
    }
}
